import 'package:json_annotation/json_annotation.dart';

part 'version.g.dart';

@JsonSerializable()
class Version {
  String? apkSize;
  String? downloadUrl;
  bool? forceUpdate;
  String? md5sum;
  String? releaseTime;
  String? remark;
  int? versionCode;
  String? versionName;

  Version({
    this.apkSize,
    this.downloadUrl,
    this.forceUpdate,
    this.md5sum,
    this.releaseTime,
    this.remark,
    this.versionCode,
    this.versionName,
  });

  factory Version.fromJson(Map<String, dynamic> json) {
    return _$VersionFromJson(json);
  }

  Map<String, dynamic> toJson() => _$VersionToJson(this);
}
